Blog

Luis Majano

October 15, 2008

Spread the word


Share your thoughts

I have completed a very cool rssReader plugin for the next installment of ColdBox. This is a stand alone plugin that I would like the community to try out and see if it would make sense to add it to the core plugins list for version 2.6.

What is so special on this plugin?

  • Uses a file caching technique by serializing/deserializing the rss structure into bytearrays.
  • The file cache is configurable and has an exposed API for you to use.
  • One standard format for RSS or ATOM feeds
  • ISO86901 and RFC822 Date Formatting and parsing. All dates are translated to standard coldfusion date strings. No need to translate or parse.
  • Easily to configure via your coldbox.xml.cfm
  • Ability to return feed items as a query or array of structures.

Those are some of the features of this plugin. The plugin is built using a cfhttp method, so its compatible with cf7 and cf8. Anyways, take it for a spin and let me know your thoughts on it. Especially if you think the plugin would be beneficial for the next ColdBox version 2.6

Configuring The Plugin:

Below are the settings you must place on your coldbox.xml.cfm:

rssReader_useCache : Use the file cache or not (Default is true, Optional Setting)

rssReader_cacheLocation : Where to store the file caching, relative to the app or absolute

rssReader_cacheTimeout : In minutes, the timeout of the file cache items. (Default is 30 minutes, Optional Setting)

rssReader_httpTimeout : In seconds, the timeout of the cfhttp call (Default is 30 seconds, Optional Setting)

Using the plugin:

//In your handler rc.myFeed = getMyPlugin("rss.rssReader").readFeed('http://news.google.com/nwshp?hl=en&tab=wn&output=rss'); //Best PRactice, put your feed links in a db or your settings. So you can do something like rc.myFeed = getMyPlugin("rss.rssReader").readFeed( getSetting('rss_googlenews') );

What gets returned on the FeedStructure:

[AUTHOR] - Feed Author
[AUTHOREMAIL] - Author Email
[AUTHORURL] - Author URL
[DATE] - Feed Created Date
[DATEUPDATED] - Feed Updated Date (Normalized ColdFusion Dates)
[DESCRIPTION] - Feed Description (Normalized ColdFusion Dates)
[TITLE] - Feed Title
[IMAGE] - Image Structure
   [LINK] - Image Link
   [TITLE] - Image Title
   [URL] - Image URL
[LINK] - Feed Link
[ITEMS] - Items Array or Query, both contain the following
   [DATE] - Feed Created Date (Normalized ColdFusion Dates)
   [DATEUPDATED] - Feed Updated Date (Normalized ColdFusion Dates)
   [DESCRIPTION] - The content
   [ENCLOSURE] - The enclosure
   [LINK] - The link to the item
   [TITLE] - The title to the item

Add Your Comment

(1)

Mar 03, 2008 12:11:22 UTC

by Joshua Giese

This is great. I am working on a project that will really benefit from this. Thanks Luis!

Recent Entries

Ortus June 2024 Newsletter!

Ortus June 2024 Newsletter!

Welcome to the latest edition of the Ortus Newsletter! This month, we're excited to bring you highlights from our sessions at CFCamp and Open South Code, as well as a sneak peek into our upcoming events. Discover the latest developments in BoxLang, our dynamic new JVM language, and catch up on all the insightful presentations by our expert team. Let's dive in!

Maria Jose Herrera
Maria Jose Herrera
June 28, 2024
BoxLang June 2024 Newsletter!

BoxLang June 2024 Newsletter!

We're thrilled to bring you the latest updates and exciting developments from the world of BoxLang. This month, we're diving into the newest beta release, introducing a new podcast series, showcasing innovative integrations, and sharing insights from recent events. Whether you're a seasoned developer or just getting started, there's something here for everyone to explore and enjoy.

Maria Jose Herrera
Maria Jose Herrera
June 28, 2024
BoxLang 1.0.0 Beta 3 Launched

BoxLang 1.0.0 Beta 3 Launched

We are thrilled to announce the release of BoxLang 1.0.0-Beta 3! This latest beta version is packed with exciting new features and essential bug fixes, including robust encryption functionality, enhanced Java interoperability, and more efficient event handling. Key highlights include the introduction of query caching capabilities, seamless coercion of Java Single Abstract Method (SAM) interfaces from BoxLang functions, and support for virtual thread executors. So, let’s dive into the details of what’s new in BoxLang 1.0.0-Beta 3 and how you can start leveraging these updates today!

Luis Majano
Luis Majano
June 28, 2024